package function

class King_Pyramid {

}
object King_Pyramid{
  /**
   * 打印九层妖塔
   * @param args
   */
  def main(args: Array[String]): Unit = {
    for(i<-1 to 9)
      {
        val stars=2*i-1
        val space=9-i
        println(" "*space+"*"*stars)
      }
  }
  }
